package mazegame;

import java.util.*;

public class GameStartTimer
{
    public Timer timer;
    private PlayerUI playerUi;

    public GameStartTimer (PlayerUI playerUi)
    {
    	this.playerUi = playerUi;
        timer = new Timer();
        timer.scheduleAtFixedRate(new UpdateTimerTask(), 1000, 1000);
    }

    class UpdateTimerTask extends TimerTask
    {
        public void run()
        {
        	System.out.println("UpdateTimerTask >>");
        	playerUi.updateGameStartTick();
        }
    }
}